package TestAop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Calendar;
import java.util.Date;

/**
 * Created by wangyg 
 * on 2017/7/25 11:15
 */
public class TestCase {
	public static void main(String[] args) {
//		LocalDateTime l=new LocalDateTime("1499616000000");
//		Calendar calendar=Calendar.getInstance();
//		calendar.setTimeInMillis(1499616000000L);
//		SimpleDateFormat simpleDateFormat=new SimpleDateFormat("YYYY MM dd hh:mm:ss");
//		String format = simpleDateFormat.format(calendar.getTime());
//		System.out.println(format);
//
//		Date date=new Date(1499616000000L);
//		SimpleDateFormat sdf=new SimpleDateFormat("YYYY MM dd hh:mm:ss");
//		String ff = sdf.format(date);
//		System.out.println(ff);
//		System.currentTimeMillis();

		ApplicationContext applicationContext=new ClassPathXmlApplicationContext("/spring-context.xml");
		ServiceCore serviceCore = (ServiceCore)applicationContext.getBean("serviceCore");
		serviceCore.printByStringBuilder();


//		serviceCore.printByString();



	}
}
